# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=bluefish
pkgver=2.2.16
pkgrel=0
pkgdesc="Bluefish is an editor targeted towards programmers and webdevelopers"
url="https://bluefish.openoffice.nl/"
arch="all"
license="GPL-3.0-or-later"
makedepends="libtool libxml2-dev gtk+3.0-dev enchant2-dev gucharmap-dev intltool"
subpackages="$pkgname-lang $pkgname-doc"
source="https://www.bennewitz.com/bluefish/stable/source/bluefish-$pkgver.tar.bz2"

prepare() {
	default_prepare
	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
212d533f4d87d8d652f82115d54fdeaac19944260c9d8faff63ece836b34eed1c88773a714531f7ece9008130900fa4085d9b5bf7f8f14e86d54b4c5d4f50ecd  bluefish-2.2.16.tar.bz2
"
